<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>日志查看</title>
<style type="text/css">
/* CSS Document */
body {
	font: normal 11px auto "Microsoft YaHei", 微软雅黑, "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	background: #E6EAE9;
}
a {
	color: #c75f3e;
}
caption {
	padding: 0 0 5px 0;
	width: 700px;
	font: italic 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	text-align: right;
}
.tab {
	width: 100%;
}
.tab th {
	font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #4f6b72;
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	border-top: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: left;
	padding: 6px 6px 6px 12px;
	background: #CAE8EA no-repeat;
}
.tab th.nobg {
	border-top: 0;
	border-left: 0;
	border-right: 1px solid #C1DAD7;
	background: none;
}
.tab td {
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	background: #fff;
	font-size: 11px;
	padding: 6px 6px 6px 12px;
	color: #4f6b72;
	font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu;
}
.tab td.alt {
	background: #F5FAFA;
	color: #797268;
}
.tab th.spec {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #fff no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}
.tab th.specalt {
	border-left: 1px solid #C1DAD7;
	border-top: 0;
	background: #f5fafa no-repeat;
	font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	color: #797268;
}
/*---------for IE 5.x bug*/
html>body td {
	font-size: 11px;
}
</style>
<script type="text/javascript" src="static/js/jquery.min.js"></script>
  <script type="text/javascript" src="static/js/layer/layer.js"></script>
<script src="static/js/laydate_v1.1/js/laydate.js"></script>
  <script src="static/js/config.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        getData();
    })

    function getData() {
        var p = {"pageSize":0,"pageNum" : 1};
        p.eventId =parent.$("#current_event_id").val();
        ajax.post('/log/param/list',p,function(data){
            showData(data.data);
        });
    }

    function showData(data) {
        var t_body = $("#param_body");
        t_body.html("");
        if(data == null || data.result.length == 0) {
            $('<tr><td colspan="2" style="text-align: center;">暂无记录</td></tr>').appendTo(t_body);
            return;
        }
        var ds = data.result;
        if(ds.length >= 1) {
            var d = ds[0];
            for(var name in d){
                $("<tr><td>"+name+"</td><td>"+d[name]+"</td></tr>").appendTo(t_body);
            }
        }
    }

    function openStepWin(eventId) {
        console.debug(eventId + "====" + $(window).height() + "===" + $(window).width());
        layer.open({
            title:"日志详情",
            type: 2,
            area: [$(window).width()*0.8+'px', $(window).height()*0.8+'px'],
            content: ''
        });
    }

</script>
</head>
<body>
<table style="width:100%; height:auto; boder:none; padding:0; margin:0;" boder="0" cellpadding="0" cellspacing="0">
  <tr>
    <td rowspan=2 width='100%' align="left" valign="top">
      <table class="tab" id="logTaskTable" cellspacing="0">
        <thead>
          <tr>
            <th scope="col">参数</th>
            <th scope="col">值</th>
          </tr>
        </thead>
        <tbody id="param_body">
        </tbody>

      </table>
      </td>
  </tr>
</table>
</body>
</html>